const env = process.env.NODE_ENV;

let MYSQL_CONF;

//开发环境
if (env === 'dev') {
  MYSQL_CONF = {
    host: '127.0.0.1',
    port: '3306',
    user: 'root',
    password: '7482386379zh',
    database: 'myblog'
  }
}

//生产环境
if (env === 'production') {
  MYSQL_CONF = {
    host: '127.0.0.1',
    port: '3306',
    user: 'root',
    password: '7482386379zh',
    database: 'myblog'
  }
}

module.exports = {
  MYSQL_CONF
}
